<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>群文档</title>
    <?php PrintPageHead(); ?>
    <script src="../resource/js/jquery-1.11.1.min.js"></script>
    <script src="../resource/js/jquery-form.js"></script>
    <script src="../resource/js/bootstrap.min.js"></script>
    <style type="text/css">
        .form_d{
            width:500px;
            margin: 20px auto;
        }
    </style>
    <?php
    if (!array_key_exists("公众号ID",$_SESSION)) {
        header("Location:back.php");
    }
    $课程id ='';
    if(isset($_REQUEST['id']))$课程id = $_REQUEST['id'];
    if($课程id){
        $内容=pdo()->selectOne("SELECT a.*,b.`name`,c.`医院` FROM `语音课程`a LEFT JOIN `用户` b ON(a.`讲课专家id` =b.id) LEFT JOIN `医师详情` c ON(b.id = c.`用户id`)  WHERE  a.id=".$_REQUEST['id'].";");
    }
    $bm=new C后台管理员();
    $专家 = $bm->fc查找所有店长();


    ?>
</head>
<body>

<div class="container-fluid">
    <?php include_once 'back_header.php'; ?>
    <div class="panel panel-primary">
    <form class="form-horizontal" role="form" id="formup" action="" method="post" enctype="multipart/form-data">
        <div class="form-group">
            <label class="col-sm-2 control-label">群名称</label>
            <div class="col-sm-10">
                <input type="text" name="群名称">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">文件名称</label>
            <div class="col-sm-10">
                <input type="text" name="名称">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">选择文件</label>
            <div class="col-sm-10">
                <input type="file" name="文件">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">文件类型</label>
            <div class="col-sm-2">
                <select name="文件类型" class="form-control">
                    <option value="Video">视频</option>
                    <option value="Word">word</option>
                    <option value="PowerPoint">PPT</option>
                    <option value="Picture">图片</option>
                </select>
            </div>
        </div>
    </form>
        <div class="btn-group">
            <button class="btn btn-default ">提交</button>
        </div>
    </div>
</div>
<script language="JavaScript">
    $(function(){
        $("button").click(function(){
            $("#formup").ajaxSubmit({
                url: "agent_manages.php?参数=文档上传",
                type: 'post',
                success: function (data) {
                    alert(data);
                },
            })
        })
    })
</script>
</body>
</html>
